package com.example.demo.service.impl;

import com.example.demo.entity.Classroom;
import com.example.demo.entity.Teacher;
import com.example.demo.mapper.ClassRoomMapper;
import com.example.demo.mapper.TeacherMapper;
import com.example.demo.service.ClassRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ClassRoomServiceImpl implements ClassRoomService {

    @Autowired
    ClassRoomMapper classRoomMapper;

    @Override
    public int save(Classroom classroom) {
        return classRoomMapper.save(classroom);
    }

    @Override
    public int delete(int crId) {
        return classRoomMapper.delete(crId);
    }

    @Override
    public int update(Classroom classroom) {
        return classRoomMapper.update(classroom);
    }

    @Override
    public List<Classroom> select() {
        return classRoomMapper.select();
    }
}
